package com.song.service;

import com.song.model.Menu;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @ClassName : ShowMenu
 * @Author : 司猫子
 * @Date: 2021/2/27 22:14
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ShowMenu {
    private MenuService ms1;
    private MenuService ms2;
    public Menu show(String name){
        Menu menu = new Menu();
        if("文件菜单".equals(name)){
            menu = ms1.getMenuIten();
        }else if("编辑菜单".equals(name)){
            menu = ms1.getMenuIten();
        }
        return menu;
    }
}
